package factory.abs_factory;

public class Test {
    public static void main(String[] args) {
        // 某用户想使用华为产品
        //Factory factory = new HWFactory();

        // 小米产品
        Factory factory = new XMFactory();
        // 获取电脑
        Computer computers = factory.createComputers();
        System.out.println(computers.showComputer());

        // 获取手机
        Phone phones = factory.createPhones();
        System.out.println(phones.showPhone());
    }
}
